package com.itheima.stock;

import com.itheima.stock.config.StockInfoConfig;
import com.itheima.stock.config.TaskThreadPoolInfo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableConfigurationProperties({StockInfoConfig.class, TaskThreadPoolInfo.class})

public class StockAppliction {
    public static void main(String[] args) {
        SpringApplication.run(StockAppliction.class, args);
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
